<?php
namespace Common\Library;

class SiteModel{

    public $id;

    public $domain;

    public $name;

    public $logo;

    public $skin;

    /**
     * 获取站点所属的企业
     */
    public function getMaster(){

    }

    /**
     * 获取站点的新闻分类
     */
    public function getNewsClassify(){
        $newsClassifyModel = D('newsclassify');
        $dataList = $newsClassifyModel->where(['si_id'=>$this->id])->select();
        $result = array();
        foreach($dataList as $value)
            $result[] = NewsClassifyDao::FetchByID($value['nc_id']);
        return $result;
    }

    /**
     * 获取站点下的新闻列表
     */
    public function getNewsList(){

    }

}